json.array!(@transactions) do |transaction|
  json.extract! transaction, :id, :customer_id, :room_id, :status_id, :check_in, :time, :check_out, :total_price
  json.url transaction_url(transaction, format: :json)
end
